package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.YyAppointment;

/**
 * 预约Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-24
 */
public interface YyAppointmentMapper
{
    /**
     * 查询预约
     *
     * @param appointmentId 预约主键
     * @return 预约
     */
    public YyAppointment selectYyAppointmentByAppointmentId(Long appointmentId);

    /**
     * 查询预约列表
     *
     * @param yyAppointment 预约
     * @return 预约集合
     */
    public List<YyAppointment> selectYyAppointmentList(YyAppointment yyAppointment);

    /**
     * 新增预约
     *
     * @param yyAppointment 预约
     * @return 结果
     */
    public int insertYyAppointment(YyAppointment yyAppointment);

    /**
     * 修改预约
     *
     * @param yyAppointment 预约
     * @return 结果
     */
    public int updateYyAppointment(YyAppointment yyAppointment);

    /**
     * 删除预约
     *
     * @param appointmentId 预约主键
     * @return 结果
     */
    public int deleteYyAppointmentByAppointmentId(Long appointmentId);

    /**
     * 批量删除预约
     *
     * @param appointmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYyAppointmentByAppointmentIds(String[] appointmentIds);

    List<YyAppointment> selectAllYyAppointmentList(YyAppointment yyAppointment);
}
